package learning.groovy

class HelloWorld {

	static main(args) {
		println "Hello World"

		def var="hello world"
		println var
		println var.class

		var="""hello
        	world
        	groovy!"""
		println var
		println var.class
		var=1001
		println var
		println var.class

		for(i in 0..5)
			println i

		repeat01('Hello')
		repeat02('World')
	}

	static def repeat01(val){
		for(def i = 0; i < 5; i++){
			println val
		}
	}

	static def repeat02(val,repeat=3){
		for(i in 0..<repeat){
			println "This is ${i}:${val}"
		}
	}
}
